package com.iona.dao;

import org.hibernate.criterion.Restrictions;

import com.iona.domain.PartDisStudyWork;


public class PartDisStudyWorkDAO extends BaseDAO {
	public PartDisStudyWork findByPartDisAndStudyWork(Integer pd, Integer sw) {
		return (PartDisStudyWork) getSession()
				.createCriteria(PartDisStudyWork.class)
				.add(Restrictions.eq("partDis.id", pd))
				.add(Restrictions.eq("studyWork.id", sw)).uniqueResult();
}
}
